package com.g9.blog.service;

import com.g9.blog.entity.Article;
import com.g9.blog.entity.Sort;

import java.util.List;

/**
 * @Auther: Graycat
 * @Date: 2020/9/14 19:34
 * Create by lwj.
 */

public interface SortService {

    void save(Sort sort);

    void deleteById(int sortId);

    List<Sort> findAll();

    void saveToConnet(int articleId, int sortId);

    Sort findById(int id);

    List<Article> findAllArticleBySortId(int sortId);

    boolean isExist(int articleId, int sortId);
}
